#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include"maze.h"
// -readMazeFromFile test function
int main(int argc,char * argv[]){

    if(argc!=2){

        printf("need filename as input.\n");
        return EXIT_FAILURE;
    }
    MazeData * data = readMazeFromFile(argv[1]);

    // SELECTION mode;
    int mode = FORWARD;
    getOut(data,data->startRow,data->startCol,NONE_DIRECTION,&mode);

    for(int index = 0;index < data->row;index++){

        if(NULL != data->cell)
            free(data->cell[index]);
    }
    free(data);
    return EXIT_SUCCESS;
}

